﻿@namespace SE.PO.CInterface.Web.Pages.DB.SU
@using SE.PO.CInterface.Web.Utils
@using SE.PO.CInterface.Web.Clients
@inject SUClient Client
@using SE.PO.CInterface.Web.Pages.DB.Components
@using System.ComponentModel.DataAnnotations
@using SE.PO.CInterface.Enums

<Form
    Model="@_model"
    Style="margin-top: 8px;"
    OnFinish="OnFinish"
    OnFinishFailed="OnFinishFailed"
    @ref="@Form">
    <FormItem Label="下级SCID" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;" Placeholder="SC编码，下级SCID" @bind-Value="@context.ScId"/>
    </FormItem>
    <FormItem Label="监控单元编码" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;" Placeholder="主键：监控单元编码" @bind-Value="@context.Id"/>
    </FormItem>
    <FormItem Label="监控单元资管编码" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;" Placeholder="监控单元资管编码，SU在资源管理系统中的唯一编码" @bind-Value="@context.SUAssetId"/>
    </FormItem>
    <FormItem Required Label="机房" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <SelectSite Model="@_model"></SelectSite>
    </FormItem>
    <FormItem Required Label="站点" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
        <SelectRoom Model="@_model"></SelectRoom>
    </FormItem>
    <FormItem Label="生产厂家描述" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;" Placeholder="生产厂家描述" @bind-Value="@context.Productor"/>
    </FormItem>
    <FormItem Label="协议版本描述" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;" Placeholder="协议版本描述" @bind-Value="@context.Version"/>
    </FormItem>
    <FormItem Label="投入运行时间" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;" Placeholder="投入运行时间" @bind-Value="@context.BeginRunTime"/>
    </FormItem>
    <FormItem Label="设备型号" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
         <Input Style="width: 220px;" Placeholder="设备型号" @bind-Value="@context.DeviceModel"/>
    </FormItem>
</Form>